package string;

/**
 * 除掉字符串左右两边的空格
 */
public class TrimDemo {
    public static void main(String[] args) {
        String s = "    woAiJava    ";
        System.out.println(s);
        String s1 = s.trim();
        System.out.println(s1);
    }
}
